<template>
    <view class="tui-loading-class tui-loading-init" v-if="visible">
        <view class="tui-loading-center"></view>
        <view class="tui-loadmore-tips">{{ text }}</view>
    </view>
</template>

<script>
export default {
    data() {
        return {};
    },
    externalClasses: ['tui-loading-class'],
    props: {
        text: {
            type: String,
            default: '加载中'
        },
        visible: {
            type: Boolean,
            default: false
        }
    },
    methods: {}
};
</script>
<style>
@import './loading.css';
</style>
